import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';


class SelfText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('SelfText')),
      body: Center(
        child: Text(
          'wo shi text 我爱北京天安门，天安门前太阳升',
          style: TextStyle(
            fontSize: 20.0,   // 字体大小，默认像素
            color: Colors.red,  // 字体颜色
            letterSpacing: 2,   // 字符间距
            fontWeight: FontWeight.w600,    // 加粗
          ),
          // 溢出点点点
          overflow: TextOverflow.ellipsis,
          maxLines: 1,
        ),
      ),
    );
  }
}

